using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
   
    public class Company 
    {
        #region Properties
        // COMPANY_ID
        public virtual int CompanyId { set; get; }
        // COMPANY_NAME_EN
        public virtual String CompanyNameEn { set; get; }
        // COMPANY_NAME_TH
        public virtual String CompanyNameTh { set; get; }
        // COMPANY_ADDRESS
        public virtual String CompanyAddress { set; get; }
        // COMPANY_CONTACT
        public virtual String CompanyContact { set; get; }
        // COMPANY_EMAIL
        public virtual String CompanyEmail { set; get; }
        // COMPANY_TEL
        public virtual String CompanyTel { set; get; }
        // COMPANY_FAX
        public virtual String CompanyFax { set; get; }
        // COMPANY_COMPANY_LEVEL
        public virtual int? CompanyCompanyLevel { set; get; }
        // COMPANY_PARENT_ID
        public virtual int? CompanyParentId { set; get; }
        // CREATE_USER_ID
        public virtual String CreateUserId { set; get; }
        // CREATE_TS
        public virtual DateTime? CreateTs { set; get; }


        public virtual String FixincomeSecuritiesAccount { get; set; }

        public virtual String EquitySecuritiesAccount { get; set; }

        public virtual String UnitTrustAccount { get; set; }

        public virtual String DepositNotedAccount { get; set; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(Company) && !(obj is Company))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}", CompanyId);
        }


       
    }


}